#include <iostream>
#include <string>
#include "queuetp2.h"

int main()
{
    using std::string;
    using std::cin;
    using std::cout;

    QueueTP<string> cs(5);
    string temp;

    while (!cs.isfull())
    {
        cout << "Please enter your name. You will be "
             "served in the order of arrival.\n"
             "name: ";
        std::getline(cin, temp, '\n');
        cs.enqueue(temp);
    }
    cout << "The queue is full. Processing begins!\n";

    while (!cs.isempty())
    {
        cs.dequeue(temp);
        cout << "Now processing " << temp << "\n";
    }

    return 0;
}
